using DevExpress.XtraReports.UI;

namespace RitaReports.Expenses
{
    public partial class ExpensesByDestinationViewer : XtraReport, IReportViewer
    {
        public ExpensesByDestinationViewer()
        {
            InitializeComponent();
        }

        #region IReportViewer Members

        public XtraReport XtraReportControl
        {
            get { return this; }
        }

        public void UpdateReportViewer(IReportDataSource reportDataSource)
        {
            ExpensesDataSource dataSource = (ExpensesDataSource)reportDataSource;

            bindingSource1.DataSource = dataSource;

            CreateDocument();
        }

        #endregion
    }
}